//
//  UIView+CHCycleExtension.m
//  CHCycleview
//
//  Created by cyptt on 2022/5/27.
//

#import "UIView+CHCycleExtension.h"

@implementation UIView (CHCycleExtension)

- (CGFloat)ch_height
{
    return self.frame.size.height;
}

-(void)setCh_height:(CGFloat)ch_height{
    CGRect temp = self.frame;
    temp.size.height = ch_height;
    self.frame = temp;
}


- (CGFloat)ch_width
{
    return self.frame.size.width;
}

-(void)setCh_width:(CGFloat)ch_width{
    CGRect temp = self.frame;
    temp.size.width = ch_width;
    self.frame = temp;
}



- (CGFloat)ch_y{
    return self.frame.origin.y;
}

-(void)setCh_y:(CGFloat)ch_y{
    CGRect temp = self.frame;
    temp.origin.y = ch_y;
    self.frame = temp;
}


-(CGFloat)ch_x{
    return self.frame.origin.x;
}

-(void)setCh_x:(CGFloat)ch_x{
    CGRect temp = self.frame;
    temp.origin.x = ch_x;
    self.frame = temp;
}


@end
